package com.jia.product.feign.coupon;

import com.jia.commons.sku.SkuReduction;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "gulimall-coupon", path = "/coupon", fallback = CouponFeignClientFallback.class)
public interface CouponFeignClient {

    @PostMapping("/spu/bounds/insert")
    public String saveSpuBounds(@RequestBody SpuBounds spuBounds);

    @PostMapping("/")
    public String saveSkuReduction(@RequestBody SkuReduction skuReduction);
}
